Rails.application.routes.draw do

  scope module: :control do
    resources :dicts, except: :show
    resources :results, only: [:index, :destroy]

    controller :console do
      get '/console/index', to: :index
      post '/console/convert', to: :convert
    end
  end

  devise_for :users

  # devise_scope :user do
  #   root to: "devise/sessions#new"
  # end

  root 'control/console#index'
end
